package(default_visibility = ["//visibility:public"])

licenses(["notice"])

load(
    "@io_bazel_rules_go//go:def.bzl",
    "go_binary",
    "go_library",
    "go_test",
    "cgo_library",
)

go_library(
    name = "go_default_library",
    srcs = [
        "main.go",
        ":bindata",
    ],
)

genrule(
    name = "bindata",
    srcs = [
        "//examples:sources",
        "//test/images:sources",
        "//test/fixtures:sources",
        "//test/e2e/testing-manifests:sources",
    ],
    outs = ["bindata.go"],
    cmd = """
$(location //vendor:github.com/jteeuwen/go-bindata/go-bindata) \
  -nometadata -o "$(OUTS)" -pkg generated \
  -prefix $$(pwd) \
  -ignore .jpg -ignore .png -ignore .md \
  $(SRCS)
""",
    tools = [
        "//vendor:github.com/jteeuwen/go-bindata/go-bindata",
    ],
)
